<?php
App::uses('AppModel', 'Model');
/**
 * Contract Model
 *
 * @property Realty $Realty
 * @property User $User
 * @property Tenant $Tenant
 * @property Drive $Drive
 */
class Contract extends AppModel {

/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'number';


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Realty' => array(
			'className' => 'Realty',
			'foreignKey' => 'realty_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Tenant' => array(
			'className' => 'Tenant',
			'foreignKey' => 'tenant_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'Drive' => array(
			'className' => 'Drive',
			'foreignKey' => 'contract_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
